home *** CD-ROM | disk | FTP | other *** search
- on(release){
- x = Math.round((this._x + 10.2) / 51.2) - 1;
- if(_root.draglej == _root.itembar[x + _root.iboffset])
- {
- stopDrag();
- _root.swappredmety.swapDepths("_root.i" add _root.draglej);
- _root.draglej = 0;
- _root.itembar_refresh();
- }
- else if(_root.draglej == 0)
- {
- if(_root.itembar[x + _root.iboffset] == 57)
- {
- if(_root.d22 & _root.naX(3) && _root._currentframe == _root.INDIANFRAME)
- {
- _root.stopdragall();
- _root.itembar_remove(57);
- _root.ii56 = 3;
- _root.d_venca.l = "mon_067_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else
- {
- _root.d_venca.l = "mon_067_" add random(5) add "_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- }
- else
- {
- _root.draglej = _root.itembar[x + _root.iboffset];
- _root.swappredmety.swapDepths("_root.i" add _root.draglej);
- startDrag("_root.i" add _root.itembar[x + _root.iboffset],0);
- }
- }
- else if(_root.draglej == 5 && _root.itembar[x + _root.iboffset] == 23)
- {
- if(_root.d04 & _root.naX(5))
- {
- _root.itembar[x + _root.iboffset] = 29;
- _root.stopdragall();
- }
- else
- {
- if(random(2) == 0)
- {
- _root.d_venca.l = "mon_022a_100";
- }
- else
- {
- _root.d_venca.l = "mon_022b_100";
- }
- _root.d_venca.i = "go";
- _root.stopdragall();
- _root.hideall();
- }
- }
- else if(_root.draglej == 23 && _root.itembar[x + _root.iboffset] == 5)
- {
- if(_root.d04 & _root.naX(5))
- {
- _root.stopdragall();
- _root.itembar_remove(23);
- _root.itembar_add(29);
- }
- else
- {
- if(random(2) == 0)
- {
- _root.d_venca.l = "mon_022a_100";
- }
- else
- {
- _root.d_venca.l = "mon_022b_100";
- }
- _root.d_venca.i = "go";
- _root.stopdragall();
- _root.hideall();
- }
- }
- else if(_root.draglej == 5 && _root.itembar[x + _root.iboffset] == 54)
- {
- _root.itembar[x + _root.iboffset] = 19;
- _root.stopdragall();
- _root.d_venca.l = "mon_042_100";
- _root.d_venca.i = "go";
- _root.ii19 = 3;
- _root.hideall();
- }
- else if(_root.draglej == 54 && _root.itembar[x + _root.iboffset] == 5)
- {
- _root.stopdragall();
- _root.itembar_remove(54);
- _root.itembar_add(19);
- _root.d_venca.l = "mon_042_100";
- _root.d_venca.i = "go";
- _root.ii19 = 3;
- _root.hideall();
- }
- else if(_root.draglej == 28 && _root.itembar[x + _root.iboffset] == 29)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 29;
- _root.itembar_remove(28);
- _root.ii28 = 2;
- _root.d_venca.l = "mon_023_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else if(_root.draglej == 29 && _root.itembar[x + _root.iboffset] == 28)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 29;
- _root.itembar_remove(29);
- _root.ii28 = 2;
- _root.d_venca.l = "mon_023_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else if(_root.draglej == 28 && _root.itembar[x + _root.iboffset] == 23)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 23;
- _root.itembar_remove(28);
- _root.ii28 = 2;
- _root.d_venca.l = "mon_023_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else if(_root.draglej == 23 && _root.itembar[x + _root.iboffset] == 28)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 23;
- _root.itembar_remove(23);
- _root.ii28 = 2;
- _root.d_venca.l = "mon_023_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else if(_root.draglej == 1 && _root.itembar[x + _root.iboffset] == 47)
- {
- _root.stopdragall();
- _root.itembar_remove(1);
- _root.itembar_add(48);
- _root.d_venca.l = "mon_057_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else if(_root.draglej == 47 && _root.itembar[x + _root.iboffset] == 1)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 48;
- _root.itembar_refresh();
- _root.d_venca.l = "mon_057_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else if(_root.draglej == 4 && _root.itembar[x + _root.iboffset] == 39)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 53;
- _root.itembar_remove(4);
- _root.ii4 = 3;
- _root.d_venca.l = "mon_054_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else if(_root.draglej == 39 && _root.itembar[x + _root.iboffset] == 4)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 53;
- _root.itembar_remove(39);
- _root.ii4 = 3;
- _root.d_venca.l = "mon_054_100";
- _root.d_venca.i = "go";
- _root.hideall();
- }
- else if(_root.draglej == 30 && _root.itembar[x + _root.iboffset] == 35)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 32;
- _root.itembar_remove(30);
- _root.ii35 = 2;
- }
- else if(_root.draglej == 35 && _root.itembar[x + _root.iboffset] == 30)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 32;
- _root.itembar_remove(35);
- _root.ii35 = 2;
- }
- else if(_root.draglej == 36 && _root.itembar[x + _root.iboffset] == 32)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 34;
- _root.itembar_remove(36);
- _root.ii36 = 2;
- }
- else if(_root.draglej == 32 && _root.itembar[x + _root.iboffset] == 36)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 34;
- _root.itembar_remove(32);
- _root.ii36 = 2;
- }
- else if(_root.draglej == 37 && _root.itembar[x + _root.iboffset] == 32)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 33;
- _root.itembar_remove(37);
- _root.ii37 = 2;
- }
- else if(_root.draglej == 32 && _root.itembar[x + _root.iboffset] == 37)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 33;
- _root.itembar_remove(32);
- _root.ii37 = 2;
- }
- else if(_root.draglej == 36 && _root.itembar[x + _root.iboffset] == 33)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 31;
- _root.itembar_remove(36);
- _root.ii36 = 2;
- }
- else if(_root.draglej == 33 && _root.itembar[x + _root.iboffset] == 36)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 31;
- _root.itembar_remove(33);
- _root.ii36 = 2;
- }
- else if(_root.draglej == 37 && _root.itembar[x + _root.iboffset] == 34)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 31;
- _root.itembar_remove(37);
- _root.ii37 = 2;
- }
- else if(_root.draglej == 34 && _root.itembar[x + _root.iboffset] == 37)
- {
- _root.stopdragall();
- _root.itembar[x + _root.iboffset] = 31;
- _root.itembar_remove(34);
- _root.ii37 = 2;
- }
- }
-